<%-- Pagina principal da aplicacao, a listagem de mercadorias. --%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div>
	<div style="border-bottom: 1px solid #E5E5E5;">
		<h4>Alunos</h4>
	</div>
	
	<table class="table table-hover">
		<thead>
			<tr>
				<th>Aluno</th>
			</tr>
		</thead>
		<c:forEach items="${alunos}" var="aluno">
		<tr>
			<td>${aluno.nome}</td>
			<td class="center">
			<a href="/web/editar-aluno?id=${aluno.id}"><button class="btn btn-warning btn-small">Editar</button></a>
		</td>
		</tr>
		</c:forEach>
	</table>
	
	<a href="/web/adicionar-aluno"><button class="btn btn-success">Adicionar aluno</button></a>
</div>